home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11206 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.1 KB  |  54 lines

  1. Path: library.erc.clarkson.edu!rpi!not-for-mail
  2. From: floydb1@lib104.its.rpi.edu (Barry B Floyd)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: COOL: Something you can do in "C" you can NOT do in "C++"
  5. Date: 12 Mar 1996 12:49:13 -0500
  6. Organization: Rensselaer Polytechnic Institute, Troy, NY.
  7. Distribution: na
  8. Message-ID: <4i4dep$bo1@lib104.its.rpi.edu>
  9. References: <4hpov3$krb@qualcomm.com> <4i3123$etb@clarknet.clark.net>
  10. NNTP-Posting-Host: lib104.its.rpi.edu
  11. X-newsreader: xrn 7.04-beta-11
  12.  
  13.  
  14. In article <4i3123$etb@clarknet.clark.net>, gusty@clark.net (Harlan Messinger) writes:
  15. |> Frank Merrow (fmerrow@wizard.qualcomm.com) wrote:
  16. |> : Hi,
  17. |> : 
  18. |> : I am teaching myself C++, but my interest in the language just dropped.
  19. |> : I want to read cin as a binary file and output cout the same as well.  I read
  20. |> : the FAQs on C++ and guess what YOU CAN'T DO IT.
  21. |> : 
  22. |> 
  23. |> Seeing as how C doesn't even _have_ cin or cout, I don't understand your 
  24. |> point.
  25.  
  26.  
  27. Seems the point concerns 'binary' not 'cin/cout'. 'binary' i/o seems
  28. to be system-specific. I vaguely recall reading something about 
  29. CR/LF interpretation on UNIX systems, where the CR/LF was not converted
  30. in 'binary' i/o. Under MS-DOS 'binary' is something else. 
  31.  
  32. Saying  "YOU CAN'T DO IT," as I'm sure you realize, is an over
  33. simplification of the matter. A little more searching and reading
  34. of the Draft Standard would go a long way (for both of us...).
  35.  
  36. 2 cents
  37.  
  38. barry
  39.  
  40.  
  41. <UL>
  42.  <li><A HREF="http://reality.sgi.com/employees/austern_mti/std-c++/faq.html"         
  43.            >C++ std: Draft Standard FAQ</A>
  44.  <li><A HREF="http://www-leland.stanford.edu/~iburrell/cpp/std.html"  
  45.            >C++ std: Draft Standard</A>
  46.  <li><A HREF="http://www.cygnus.com/misc/wp/draft/"                   
  47.            >C++ std: Draft Standard April '95 Working Paper</A>
  48. </ul>
  49. -- 
  50. +--------------------------------------------------------------------+ 
  51. | Barry B. Floyd                   \\\               floydb1@rpi.edu |
  52. | RPI Alum. '84 '87 '88              \\\                             |
  53. +--------------------------------------------------------------------+
  54.